﻿package bdz.projects.slab.events  {
	import flash.events.Event;
	
	/**
	* ...
	* @author Default
	*/
	public class SlabSiteEvent extends Event {
		public static const SITE_INFO_LOADED:String = "siteInfoLoaded";
		public static const PRIVATE_GALLERY_LOADED:String = "privateGalleryLoaded";
		public static const PUBLIC_GALLERY_LOADED:String = "publicGalleryLoaded";
		public static const ARTISTS_LOADED:String = "artistsLoaded";
		public static const NEWS_LOADED:String = "newsLoaded";
		public static const PUBLIC_GALLERY_INFO_LOADED:String = "publicGalleryInfoLoaded";
		public static const PRIVATE_GALLERY_INFO_LOADED:String = "privateGalleryInfoLoaded";
		
		public static const SECTION_TRANSITIONOUT:String = "sectionTransitionOut";
		public static const ITEM_SELECTED:String = "itemSelected";
		public static const GALLERY_FROM_ARTIST:String = "galleryFromArtist";
		public static const START_LOGIN:String = "startLogin";
		public static const CANCEL_LOGIN:String = "cancelLogin";
		public static const LOGIN:String = "login";
		public static const LOGIN_FAILED:String = "loginFailed";
		public static const LOGIN_SUCCESSFUL:String = "loginSuccessful";
		public static const SHOW_VIDEO:String = "showVideo";
		public static const SEND_INQUIRY:String = "sendInquiry";
		
		public static const GO_HOME:String = "goHome";
		public static const GO_TO_SILVERLENS:String = "goToSilverlens";
		public static const GO_TO_NEWS:String = "goToNews";
		public static const GO_TO_INKSURGE:String = "goToInksurge";
		
		public var data:*;
		function SlabSiteEvent(type:String, info:* = null, bubbles:Boolean = true, cancelable:Boolean = true) {
			data = info;
			super(type, bubbles, cancelable);
		}
		override public function clone():Event {
			return new SlabSiteEvent(type, data, bubbles, cancelable);
		}
	}
	
}